import { createApp } from 'vue'
import App from './App.vue'
import mitt from "mitt"
import router from "./router";
import create from "./utils/create";

const app = createApp(App)

//挂载事务总线为全局属性
app.config.globalProperties.$mybus = new mitt()
// app.config.globalProperties.$create = create

app.use(create)

app.use(router)

console.log(app.config.globalProperties.$router)

app.mount('#app')